﻿namespace Core
{
    public static partial class Utils
    {
        public static class UI
        {
            public static void SetAlpha(UnityEngine.UI.Graphic graphic, float alpha)
            {
                if (graphic == null) return;

                var color = graphic.color;
                color.a = alpha;
                graphic.color = color;
            }
        }
    }
}
